/* 设置页面样式 */

/* 设置项列表 */
.settings-list {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
  }
  
  .settings-item {
    padding: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
  }
  
  .settings-item:last-child {
    border-bottom: none;
  }
  
  .settings-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
  }
  
  .settings-icon i {
    color: white;
    font-size: 1.1rem;
  }
  
  .settings-content {
    flex: 1;
  }
  
  .settings-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
  }
  
  .settings-desc {
    font-size: 0.85rem;
    color: #666;
  }
  
  .settings-right {
    margin-left: 16px;
  }
  
  .settings-right i {
    color: #ccc;
  }
  
  /* 切换开关 */
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }
  
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .toggle-slider {
    background-color: var(--success-color);
  }
  
  input:checked + .toggle-slider:before {
    transform: translateX(26px);
  }
  
  /* 分割标题 */
  .settings-section {
    font-size: 0.9rem;
    color: #666;
    margin: 24px 0 12px;
    padding-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  /* 值选择器 */
  .value-selector {
    display: flex;
    align-items: center;
  }
  
  .selector-value {
    margin: 0 8px;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
  }
  
  .selector-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }
  
  /* 按钮 */
  .btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    text-align: center;
    margin: 24px 0;
  }
  
  .btn-danger {
    background-color: var(--danger-color);
  }
  
  /* 版本信息 */
  .version-info {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin-top: 24px;
  }

  /* 暗色模式样式 */
  .dark-mode .settings-section {
    color: #aaa;
  }

  .dark-mode .settings-item {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }

  .dark-mode .settings-desc {
    color: #aaa;
  }

  .dark-mode .selector-btn {
    background-color: #333;
    color: #ccc;
  }

  .dark-mode .version-info {
    color: #666;
  }

  /* 顶部提示弹窗 */
  .toast-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    pointer-events: none;
  }

  .toast-content {
    background-color: var(--success-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastSlideIn 0.3s ease-out;
  }

  .toast-content i {
    font-size: 1rem;
  }

  @keyframes toastSlideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dark-mode .toast-content {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }